package com.haoshuang.zhouzhoubang.ui.page.shop.detail

import com.haoshuang.zhouzhoubang.databinding.ItemGoodsSpecSecondBinding
import com.haoshuang.zhouzhoubang.model.bean.GoodsSpecBean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter


/**
 *
 */
class GoodsSpecSecondAdapter(data: MutableList<GoodsSpecBean.GoodsSpec.Value>) :
    BaseBindingQuickAdapter<GoodsSpecBean.GoodsSpec.Value, ItemGoodsSpecSecondBinding>(data) {

    override fun onBindViewHolder(
        holder: BaseBindingHolder,
        position: Int,
        item: GoodsSpecBean.GoodsSpec.Value?
    ) {
        holder.getViewBinding<ItemGoodsSpecSecondBinding>().apply {
            tvSpec.text = item?.title
            tvSpec.isSelected = item?.isChoose == true
        }
    }


}
